<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05_JS运算符</title>
</head>
<body>
  <script>
    console.log(1+1);
    console.log(1-1);
    console.log(2*6);
    console.log(10/2);
    console.log(10/4);//2.5
    console.log(10%3);//1
    console.log('6'/2);//3
    console.log('巴'>'幂');
    console.log('3'.charCodeAt());
    console.log('1000003'.charCodeAt(6));

    let a=1;
    let b=true;
    console.log(a==b);//true,只比较值，1==true的值
    console.log(a===b);//false,先比较类型，类型一样在比较值

    let c=0;
    console.log(c==0?'yes':'no');
    console.log(c=0?'yes':'no');
  </script>
</body>
</html>